package com.loong.rpc.loadbalance;

import com.loong.rpc.common.ServiceURL;

import java.util.List;
import java.util.Random;

public class Loadbalance {

    public static ServiceURL random(List<ServiceURL> list) {
        Random random = new Random();
        int no = random.nextInt(list.size());
        return list.get(no);
    }

}
